package homework_2.animal;

/**
 * @author 朱
 * @date 2019031819:59
 */

/**
 * 1、设计猫、狗类（封装方法、构造方法），考虑是否可以抽取出共同的属性和方法（使用继承），又是否有各自特殊的属性和方法。测试类中查看。
 */
public class Animal {
       public String type;//种类//
       public String live;//生存方式//
       public String sport;
       public String name;

    public Animal(String type, String live, String sport, String name) {
        this.type = type;
        this.live = live;
        this.sport = sport;
        this.name = name;
    }

    public Animal(){

    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLive() {
        return live;
    }

    public void setLive(String live) {
        this.live = live;
    }

    public String getSport() {
        return sport;
    }

    public void setSport(String sport) {
        this.sport = sport;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
